home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / PPC Development tips < prev    next >
Encoding:
Text File  |  1995-07-11  |  1.5 KB  |  27 lines  |  [TEXT/ttxt]

  1.  
  2. PPC Development Tips
  3. 11 July 1995
  4.  
  5.  
  6. Building Native Power Macintosh applications:
  7.  
  8. This note covers information which is specific to developing with QuickDraw GX for on a Power Macintosh.
  9.  
  10. In the "Development Stuff:QuickDrawâ„¢ GX Interfaces & Libs:PPCLibraries:" folder, you will find the file QuickDrawGXLib.xcoff.  This is the file that you will need to link when creating a Power Macintosh native application that uses QuickDraw GX and it contains all the entry points for the various traps that make up QuickDraw  GX. 
  11.  
  12. To find the samples which have been compiled FAT using MPW or Metrowerks, see the "Directory of Samples" document within the "Sample Code" folder.  Look for samples that have been built using Metrowerks PPC and MPW PPCC.
  13.  
  14. MPW
  15. The make files for several samples have been updated to support "weak linking."  Please see their makefiles for comments regarding "weak linking".
  16.  
  17. Metrowerks
  18. To make FAT builds from Metrowerks, you need to make a 68K and a PPC build.  Then, using ResEdit, copy the CODE, DATA, and XREF resources from the 68K build into the PPC one.  You now have a FAT build for both 68K and PPC machines.  Regarding weak linking in Metrowerks: the feature is rather hidden.  You need to click on the triangle next to the QuickDrawGXLib.xcoff and in the popup menu which appears, specify weak linking.
  19.  
  20.  
  21. A good example of all the above is the sample application "QuickDraw GX Shell" which builds in MPW, Symantec and Metroworks for 68K and PPC.  It also uses the new GX interfaces.
  22.  
  23.  
  24.  
  25.  
  26.  
  27.